package org.jeecg.modules.car.service;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.models.auth.In;
import org.jeecg.entity.car.CarParkingRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 车场进出记录
 * @Author: jeecg-boot
 * @Date:   2020-09-27
 * @Version: V1.0
 */
public interface ICarParkingRecordService extends IService<CarParkingRecord> {

    Integer addOrUpdate(CarParkingRecord carParkingRecord);

    CarParkingRecord getParkingRecordByCarNo(String carNo);

    List<CarParkingRecord> findPage(Page<CarParkingRecord> page, CarParkingRecord carParkingRecord);

    CarParkingRecord getByRecordId(String recordId, Integer isExit);

    List<CarParkingRecord> getByCarNosAndParkId(String tenantId, List<String> carNos, String parkId);

    /**
     * 查询未上传、需补传的数据
     * @param parkId  车场
     * @param resendDate  需补传的日期
     * @return
     */
    List<CarParkingRecord> selectNotSyncShParking(String parkId,String resendDate);

    /**
     * 获取车辆的在场状态
     * @param carNo
     * @return
     */
    Integer getIsExitByPlate(String carNo);
}
